/**
 * 验证工具类型定义
 */

export interface ValidationRule {
  required?: boolean
  pattern?: RegExp
  min?: number
  max?: number
  minLength?: number
  maxLength?: number
  message?: string
  validator?: (value: any) => boolean | string
}

export interface ValidationResult {
  valid: boolean
  message?: string
  errors?: string[]
}

export interface ValidatorOptions {
  allowEmpty?: boolean
  trim?: boolean
  message?: string
}